/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tpe.doublylinkedlist;

import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;

/**
 *
 * @author yana
 */
public class DoublyLinketList<T> implements List<T>{

    private LinkedList<T> delegat = new LinkedList<T> ();

    @Override
    public boolean retainAll(Collection<?> c) {
        return delegat.retainAll(c);
    }

    @Override
    public boolean removeAll(Collection<?> c) {
        return delegat.removeAll(c);
    }

    @Override
    public boolean isEmpty() {
        return delegat.isEmpty();
    }

    @Override
    public boolean containsAll(Collection<?> c) {
        return delegat.containsAll(c);
    }

    @Override
    public Iterator<T> iterator() {
        return delegat.iterator();
    }

    @Override
    public <T> T[] toArray(T[] a) {
        return delegat.toArray(a);
    }

    @Override
    public Object[] toArray() {
        return delegat.toArray();
    }

    @Override
    public int size() {
        return delegat.size();
    }

    @Override
    public T set(int index, T element) {
        return delegat.set(index, element);
    }

    @Override
    public T remove(int index) {
        return delegat.remove(index);
    }

    @Override
    public boolean remove(Object o) {
        return delegat.remove((T) o);
    }

    @Override
    public ListIterator<T> listIterator(int index) {
        return delegat.listIterator(index);
    }

    @Override
    public int lastIndexOf(Object o) {
        return delegat.lastIndexOf(o);
    }

    @Override
    public int indexOf(Object o) {
        return delegat.indexOf(o);
    }

    @Override
    public T get(int index) {
        return delegat.get(index);
    }

    @Override
    public boolean contains(Object o) {
        return delegat.contains((T) o);
    }

    @Override
    public void clear() {
        delegat.clear();
    }

    @Override
    public boolean addAll(int index, Collection<? extends T> c) {
        return delegat.addAll(index, c);
    }

    @Override
    public boolean addAll(Collection<? extends T> c) {
        return delegat.addAll(c);
    }

    @Override
    public void add(int index, T element) {
        delegat.add(index, element);
    }

    @Override
    public boolean add(T e) {
        return delegat.add(e);
    }

    @Override
    public ListIterator<T> listIterator() {
        return delegat.listIterator();
    }

    @Override
    public List<T> subList(int fromIndex, int toIndex) {
        return delegat.subList(fromIndex, toIndex);
    }

    public void addLast(T e) {
        delegat.addLast(e);
    }

    public void addFirst(T e) {
        delegat.addFirst(e);
    }

    public T getLast() {
        return delegat.getLast();
    }

    public T getFirst() {
        return delegat.getFirst();
    }

}
